import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/base.less'
import './utils/vant'
import dayjs from 'dayjs'
import 'dayjs/locale/zh'
import relativeTime from 'dayjs/plugin/relativeTime'
dayjs.extend(relativeTime)
dayjs.locale('zh')
Vue.filter('relvTime', (val) => {
  return dayjs(val).fromNow()
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
